{% extends "base.html" %}

{% block title %}Members{% endblock %}

{% block content %}

<div class="row">
	<div class="span12 offset2">
		<table class="bordered-table zebra-striped">
			<thead>
				<tr>
					<td><strong>First Name</strong></td>
					<td><strong>Last Name</strong></td>
					<td><strong>Email Address</strong></td>
					<td><strong>Status</strong></td>
				</tr>
			</thead>
			<tbody>
				{% for m in members %}
				<tr>
					<td>{{m.member.first_name}}</td>
					<td>{{m.member.last_name}}</td>
					<td><a href="mailto:{{m.member.email}}">{{m.member.email}}</a></td>
					<td>{% if m.team_role %}
						<span class="label important">{{m.team_role|capfirst}}</span>
						{% else %}
						<span class="label notice">Member</span>
						{% endif %}</td>
				</tr>
				{% endfor %}
			</tbody>
		</table>
	</div>
</div>

{% endblock %}